<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <%@include file="../common.jsp"%>
    <title>医院管理</title>
	<meta http-equiv="cache-control" content="no-cache">
	<link rel="stylesheet" type="text/css" href="resources/css/common.css">
	<script type="text/javascript" src="resources/js/hospital.js"></script>  
  </head>
  <body>
   	<div class="content">
   		<h4>科室管理</h4>
   		<hr/>
	  <div class="panel panel-default">
	    <div class="panel-heading">
	      <h4 class="panel-title">
	        <a data-toggle="collapse" data-parent="#accordion" href="#query_items">
	          	查询条件
	        </a>
	      </h4>
	    </div>
	    <div id="query_items" class="panel-collapse collapse out">
	      <div class="panel-body" style="padding: 10px;">
	      	<form id="search_form" class="form-horizontal">
			       <div class="form-group">
			    		<label class="col-sm-2 control-label required">所在省份</label>
			    		<div class="col-sm-2">
			      			<select name="search_province" class="form-control" data-toggle="tooltip" data-placement="top" title="请选择省份">
							  <option value="0" selected="selected">请选择...</option>
							</select>
			    		</div>	
			    		<label class="col-sm-1 control-label required">城市</label>
			    		<div class="col-sm-2">
			      			<select name="search_city" class="form-control" data-toggle="tooltip" data-placement="top" title="请选择城市">
							  <option value="0" selected="selected">请选择...</option>
							</select>
			    		</div>	
			    		<label class="col-sm-1 control-label required">县/区</label>
			    		<div class="col-sm-2">
			      			<select name="search_county" class="form-control" data-toggle="tooltip" data-placement="top" title="请选择县/区">
							  <option value="0" selected="selected">请选择...</option>
							</select>
			    		</div>		
			  		</div>	
			</form>
		  </div>
	    </div>
	  </div>
	    <!-- 工具栏 -->
   		<div class="tools">
    	    <button id="btn_add" type="button" class="btn btn-success"  data-toggle="modal" data-target="#modal_add"><i class="icon icon-plus"></i> 增加</button>
    	    <button id="btn_edit" type="button" class="btn btn-warning"><i class="icon icon-pencil"></i> 校正信息</button>
	    </div>
	    
	    <!-- 列表 -->	    
	    <table id="tab_list" class="table table-hover table-striped mytable">
			<thead>
				<tr>
					<th style="width: 35px;"><input id="pkall" type='checkbox' class='checkbox'></th>
					<th style="width: 50px;">序号</th>
					<th>医院名称 </th>
					<th>位置</th>
					<th>级别</th>
				</tr>
			</thead>
			<tbody>
				
			</tbody>
	  	</table>
	  	<!-- 分页信息条 -->
	  	<div id="pagebar" class="pagebar">
		  	<ul class="pager">
		  		
			</ul>
			<p id="page_info" class="page_info">显示第<span>0</span>到第<span>0</span>条记录,共<span>0</span>条</p>
	  	</div>
	  </div>
	  <!-- 修改 -->
	  <div class="modal fade bs-example-modal-lg" id="modal_edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
	      		<div class="modal-header">
	        		<button type="button" class="close" data-dismiss="modal">
		        		<span aria-hidden="true">&times;</span>
		        		<span class="sr-only">Close</span>
	        		</button>
	        		<h4 class="modal-title" id="myModalLabel">修改医院信息</h4>
	      		</div>
	      		<div class="modal-body">
	         		<form id="form_edit" class="form-horizontal" role="form" action="department/modify" method="post">
	         	  		<input type="hidden" id="edit_id" name="id">
				  		<div class="form-group">
				    		<label class="col-sm-2 control-label required">医院名称</label>
				    		<div class="col-sm-4">
				      			<input type="text" name="name" class="form-control" placeholder="如北京协和医院"  data-toggle="tooltip" data-placement="top" title="请输入医院名称">
				    		</div>	
				    		<label class="col-sm-2 control-label required">级别</label>
				    		<div class="col-sm-4">
				      			<input type="text" name="level" class="form-control" placeholder="如三级甲等" data-toggle="tooltip" data-placement="top" title="请输入级别">
				    		</div>		  
				  		</div>	
				  		<div class="form-group">
				    		<label class="col-sm-2 control-label required">所在省份</label>
				    		<div class="col-sm-2">
				      			<select name="province" class="form-control" data-toggle="tooltip" data-placement="top" title="请选择省份">
								  <option value="0" selected="selected">请选择...</option>
								</select>
				    		</div>	
				    		<label class="col-sm-1 control-label required">城市</label>
				    		<div class="col-sm-2">
				      			<select name="city" class="form-control" data-toggle="tooltip" data-placement="top" title="请选择城市">
								  <option value="0" selected="selected">请选择...</option>
								</select>
				    		</div>		  
				    		<label class="col-sm-1 control-label required">县/区</label>
				    		<div class="col-sm-2">
				      			<select name="county" class="form-control" data-toggle="tooltip" data-placement="top" title="请选择县/区">
								  <option value="0" selected="selected">请选择...</option>
								</select>
				    		</div>		  
				  		</div>	
				  		<div class="form-group">
				    		<label class="col-sm-2 control-label required">具体地址</label>
				    		<div class="col-sm-10">
				      			<input type="text" name="location" class="form-control"  placeholder="如五角场街道国定东路200号1号楼1010室"  data-toggle="tooltip" data-placement="top" title="请输入具体地址">
				    		</div>	
				  		</div>	
				  	</form>			  
	    		</div>
	    		<div class="modal-footer">
					<button id="btn_confirm_edit" type="button" class="btn btn-primary">确定</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
	            </div>
	  		</div>
		</div>
	</div>
	  <!-- 增加 -->
<div class="modal fade bs-example-modal-lg" id="modal_add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
	      		<div class="modal-header">
	        		<button type="button" class="close" data-dismiss="modal">
		        		<span aria-hidden="true">&times;</span>
		        		<span class="sr-only">Close</span>
	        		</button>
	        		<h4 class="modal-title" id="myModalLabel">增加医院信息</h4>
	      		</div>
	      		<div class="modal-body">
	         		<form id="form_add" class="form-horizontal" role="form">
	         	  		<input type="hidden" id="edit_id" name="id">
				  		<div class="form-group">
				    		<label class="col-sm-2 control-label required">医院名称</label>
				    		<div class="col-sm-4">
				      			<input type="text" name="name" class="form-control" placeholder="如北京协和医院"  data-toggle="tooltip" data-placement="top" title="请输入医院名称">
				    		</div>	
				    		<label class="col-sm-2 control-label required">级别</label>
				    		<div class="col-sm-4">
				      			<input type="text" name="level" class="form-control" placeholder="如三级甲等" data-toggle="tooltip" data-placement="top" title="请输入级别">
				    		</div>		  
				  		</div>	
				  		<div class="form-group">
				    		<label class="col-sm-2 control-label required">所在省份</label>
				    		<div class="col-sm-2">
				      			<select name="province" class="form-control" data-toggle="tooltip" data-placement="top" title="请选择省份">
								  <option value="0" selected="selected">请选择...</option>
								</select>
				    		</div>	
				    		<label class="col-sm-1 control-label required">城市</label>
				    		<div class="col-sm-2">
				      			<select name="city" class="form-control" data-toggle="tooltip" data-placement="top" title="请选择城市">
								  <option value="0" selected="selected">请选择...</option>
								</select>
				    		</div>		  
				    		<label class="col-sm-1 control-label required">县/区</label>
				    		<div class="col-sm-2">
				      			<select name="county" class="form-control" data-toggle="tooltip" data-placement="top" title="请选择县/区">
								  <option value="0" selected="selected">请选择...</option>
								</select>
				    		</div>		  
				  		</div>	
				  		<div class="form-group">
				    		<label class="col-sm-2 control-label required">具体地址</label>
				    		<div class="col-sm-10">
				      			<input type="text" name="location" class="form-control"  placeholder="如五角场街道国定东路200号1号楼1010室"  data-toggle="tooltip" data-placement="top" title="请输入具体地址">
				    		</div>	
				  		</div>	
				  	</form>			  
	    		</div>
	    		<div class="modal-footer">
					<button id="btn_confirm_add" type="button" class="btn btn-primary">确定</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
	            </div>
	  		</div>
		</div>
	</div>
  </body>
</html>